//
//  ViewControllerB.m
//  PresentViewController2
//
//  Created by student on 16/2/24.
//  Copyright © 2016年 NIIT. All rights reserved.
//

#import "ViewControllerB.h"
#import "AppDelegate.h"

@interface ViewControllerB ()

@end

@implementation ViewControllerB

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    
    self.resultLabel.text = [NSString stringWithFormat:@"%i",self.num];
}

- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:YES];
    NSLog(@"%s",__func__);
    
    AppDelegate *appDelegate = [UIApplication sharedApplication].delegate;
    
}

- (IBAction)cancelBtnPressed:(id)sender
{
    // 取消当前模态窗口
    [self dismissViewControllerAnimated:YES completion:nil];
}


@end
